package com.yunxin.core.customer.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zero°
 * @since 2023-06-08
 */
@Data
@Schema(description = "添加标签")
public class UpdateTagDto implements Serializable {

    @Schema(description = "标签id")
    @NotNull(message = "标签id不能为空")
    private Long id;

    @Schema(description = "标签名")
    @NotBlank(message = "标签名不能为空")
    private String name;

    @Schema(hidden = true)
    private Long editor;

}
